<!-- /**
 * 自动定位模块
 */ -->
<template>
	<!--定位-->
	<view class="location clear-both">
		<view class="float-l clear-both" @tap="setAddress()">
			<image :src="iconlist[0]" class="locImg float-l"></image>
			<text class="color0 fs14 float-l locImgr text-over addres">{{ address }}</text>
			<image :src="iconlist[1]" class="locEnt float-l locImgr"></image>
		</view>
		<!-- <view class="float-r clear-both">
			<image :src="iconlist[2]" class="locImg float-l"></image>
			<image :src="iconlist[3]" class="locImg float-r locImgr"></image>
		</view> -->
	</view>
</template>

<script>
	export default {
		props:{
			address: {
				type: String,
				default: ''
			},
			iconlist:{
				type: Array,
				default: []
			}
		},
		data: () => {
			return {
			}
		},
		methods: {
			//手动设置地址
			setAddress() {
				this.$emit('setAddress')
			},
			
		},
		created: function() {

		}
	}
</script>

<style lang="scss" scoped="scoped">
	.location{
		width: 91.4667vw;
		height: 10.667vw;
		margin: 0 auto;
		border-bottom: 2upx solid #E1E1E1;
		line-height: 10.667vw;
		.addres{
			max-width: 64vw;
		}
		.locEnt{
			width: 4.2667vw;
			height: 4.2667vw;
			margin-top: 3.2vw;
		}
		.locImg{
			width: 5.8667vw;
			height: 5.8667vw;
			margin-top: 2.4vw;
		}
		.locImgr{
			margin-left: 1.0667vw;
		}
	}
	.nav-top {
		width: 100%;
		height: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		background: #fff;
		
		.left {
			width: 80%;
			height: 80upx;
			line-height: 80upx;
			display: flex;
			flex-wrap: wrap;
			justify-content: flex-start;

			.uni-icon{
				line-height: 80upx;
			}
			.address {
				max-width: calc(100% - 160upx);
				font-size: 28upx;
				color: #333333;
				font-weight: 600;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}

		.right {
			width: 20%;
			height: 100%;
			justify-content: flex-end;
			text-align: center;
		}
	}
</style>
